package cn.supermarket.entity;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

import cn.supermarket.springutil.DateUtil;


public class Bill implements Serializable {
	private Integer id;   //id 
	private String billCode; //账单编码 
	private String productName; //商品名称 
	private String productDesc; //商品描述 
	private String productUnit; //商品单位
	private double productCount; //商品数量 
	private double totalPrice; //总金�?
	private Integer isPayment; //是否支付 
	private Integer providerId; //供应商ID 
	private Integer createdBy; //创建�?
	private Date creationDate; //创建时间
	private Integer modifyBy; //更新�?
	private Date modifyDate;//更新时间
	
	private String providerName;//供应商名称
	private String proDesc;//供应商描述

	
	public Integer getId() {
		return id;
	}


	public void setId(Integer id) {
		this.id = id;
	}


	public String getBillCode() {
		return billCode;
	}


	public void setBillCode(String billCode) {
		this.billCode = billCode;
	}


	public String getProductName() {
		return productName;
	}


	public void setProductName(String productName) {
		this.productName = productName;
	}


	public String getProductDesc() {
		return productDesc;
	}


	public void setProductDesc(String productDesc) {
		this.productDesc = productDesc;
	}


	public String getProductUnit() {
		return productUnit;
	}


	public void setProductUnit(String productUnit) {
		this.productUnit = productUnit;
	}


	public double getProductCount() {
		return productCount;
	}


	public void setProductCount(double productCount) {
		this.productCount = productCount;
	}


	public double getTotalPrice() {
		return totalPrice;
	}


	public void setTotalPrice(double totalPrice) {
		this.totalPrice = totalPrice;
	}


	public Integer getIsPayment() {
		return isPayment;
	}


	public void setIsPayment(Integer isPayment) {
		this.isPayment = isPayment;
	}


	public Integer getProviderId() {
		return providerId;
	}


	public void setProviderId(Integer providerId) {
		this.providerId = providerId;
	}


	public Integer getCreatedBy() {
		return createdBy;
	}


	public void setCreatedBy(Integer createdBy) {
		this.createdBy = createdBy;
	}


	public String getCreationDate() {
		return DateUtil.datestring2(creationDate) ;
	}


	public void setCreationDate(Date creationDate) {
		this.creationDate = creationDate;
	}


	public Integer getModifyBy() {
		return modifyBy;
	}


	public void setModifyBy(Integer modifyBy) {
		this.modifyBy = modifyBy;
	}


	public Date getModifyDate() {
		return modifyDate;
	}


	public void setModifyDate(Date modifyDate) {
		this.modifyDate = modifyDate;
	}


	public String getProviderName() {
		return providerName;
	}


	public void setProviderName(String providerName) {
		this.providerName = providerName;
	}


	public String getProDesc() {
		return proDesc;
	}


	public void setProDesc(String proDesc) {
		this.proDesc = proDesc;
	}


	public Bill(){
		
	}


	public Bill(Integer id, String billCode, String productName,
			String productDesc, String productUnit, double productCount,
			double totalPrice, Integer isPayment, Integer providerId,
			Integer createdBy, Date creationDate, Integer modifyBy,
			Date modifyDate, String providerName, String proDesc) {
		super();
		this.id = id;
		this.billCode = billCode;
		this.productName = productName;
		this.productDesc = productDesc;
		this.productUnit = productUnit;
		this.productCount = productCount;
		this.totalPrice = totalPrice;
		this.isPayment = isPayment;
		this.providerId = providerId;
		this.createdBy = createdBy;
		this.creationDate = creationDate;
		this.modifyBy = modifyBy;
		this.modifyDate = modifyDate;
		this.providerName = providerName;
		this.proDesc = proDesc;
	}


	@Override
	public String toString() {
		return "Bill [id=" + id + ", billCode=" + billCode + ", productName="
				+ productName + ", productDesc=" + productDesc
				+ ", productUnit=" + productUnit + ", productCount="
				+ productCount + ", totalPrice=" + totalPrice + ", isPayment="
				+ isPayment + ", providerId=" + providerId + ", createdBy="
				+ createdBy + ", creationDate=" + creationDate + ", modifyBy="
				+ modifyBy + ", modifyDate=" + modifyDate + ", providerName="
				+ providerName + ", proDesc=" + proDesc + "]";
	}

	
	
	
}
